<template>
	<view>
		<view class="navigation-bar">
			<view @click="turnBack"><image src="/static/左箭头.png"></image></view><text>订单详情</text>
		</view>
		<view class="background"></view>
		<view class="success">
			支付成功，请您前往指定门店消费
		</view>
		<view class="store">
			<view class="img">
				<view>
					<image src="/static/商家@2x.png"></image>
				</view>
				<view>
					<view class="address">伟业汽车美容店(人民路店)</view>
					<view class="location">
						山阳区人民中路33号
					</view>
				</view>
			</view>
			<view class="img2" @click="navigation">
				<image src="/static/plane@2x.png" mode=""></image>
			</view>
		</view>
		<view class="card1">
			<view class="orderDetails">订单详情</view>
			<view class="car">
				<view>车辆精洗</view>
				<view>$39.90</view>
			</view>
			<view class="money">
				<view>车辆附加费用</view>
				<view>0</view>
			</view>
			<view class="originalPrice">
				<view>原价</view>
				<view>￥59.90</view>
			</view>
			<view class="discount">
				<view>店家优惠</view>
				<view>-￥20</view>
			</view>
			<view class="coupon">
				<view>优惠券</view>
				<view>-￥10</view>
			</view>
			<view class="payment">
				<view>支付金额</view>
				<view>￥29.9</view>
			</view>
		</view>
		<view class="card2">
			<view class="orderingInformation">
				订单信息
			</view>
			<view class="orderNo">
				<view>订单号：</view>
				<view>121212112487878</view>
			</view>
			<view class="time">
				<view>下单时间：</view>
				<view>2020.01.08<text>17:40</text></view>
			</view>
			<view class="time1">
				<view>预约时间：</view>
				<view>2020.01.08<text>17:40</text></view>
			</view>
			<view class="vehicle">
				<view>车辆：</view>
				<view>奔驰FWE$/豫A98FHJ</view>
			</view>
			<view class="notes">
				<view>备注：</view>
				<view></view>
			</view>
		</view>
		<view class="bottom"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			turnBack() {
				uni.navigateBack({
					url: "/pages/index/index"
				})
			},navigation() {
				uni.navigateTo({
					url: "/packageMaintenance/pages/navigation/navigation"
				})
			}
		}
	}
</script>

<style>
	.navigation-bar {
		position: relative;
		height: 150rpx;
		display: flex;
		align-items: center;
		background-color: #287BF6;
	}

	.navigation-bar>view>image {
		width: 30rpx;
		height: 30rpx;
		margin-left: 30rpx;
	}
	
	.navigation-bar>text {
		color: #FFF;
		margin-right: 40rpx;
		flex-grow: 1;
		text-align: center;
	}
	.background {
		position: absolute;
		background-color: #287BF6;
		width: 100%;
		height: 300rpx;
	}


	.success {
		position: relative;
		padding-top: 30rpx;
		padding-left: 40rpx;
		padding-bottom: 20rpx;
		font-size: 28rpx;
		color: #FFF;
		background-color: #287BF6;
	}

	.store {
		position: relative;
		color: #FFF;
		background-color: #287BF6;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-left: 20rpx;
		padding: 10rpx 20rpx;
	}

	.address {
		position: relative;
		margin-left: 10rpx;
		font-size: 32rpx;
	}

	.location {
		position: relative;
		margin-left: 10rpx;
		margin-top: 10rpx;
		padding-bottom: 20rpx;
		font-size: 25rpx;
	}

	.img {
		position: relative;
		display: flex;
	}

	.img>view>image {
		position: relative;
		width: 30rpx;
		height: 30rpx;
	}

	.img2>image {
		position: relative;
		width: 30rpx;
		height: 30rpx;
		padding-right: 40rpx;
	}

	.card1 {
		position: relative;
		margin: 20rpx;
		border-radius: 20rpx;
		background-color: #FFF;
	}

	.orderDetails {
		font-size: 32rpx;
		font-weight: bold;
		padding-top: 30rpx;
		margin-left: 20rpx;
		margin-right: 20rpx;
		padding: 20rpx;
		border-bottom: 5px solid #F7F7F7;
	}

	.car {
		display: flex;
		justify-content: space-between;
		margin: 20rpx;
	}

	.money {
		display: flex;
		justify-content: space-between;
		margin-top: 20rpx;
		margin-left: 20rpx;
		margin-right: 20rpx;
		padding-bottom: 20rpx;
		border-bottom: 1px solid #F7F7F7;
	}

	.originalPrice {
		display: flex;
		justify-content: space-between;
		margin: 20rpx;
	}

	.discount {
		display: flex;
		justify-content: space-between;
		margin-top: 20rpx;
		margin-left: 20rpx;
		margin-right: 20rpx;
		padding-bottom: 20rpx;
		border-bottom: 1px solid #F7F7F7;
	}

	.discount>view:nth-child(2) {
		color: #F86639;
	}

	.coupon {
		display: flex;
		justify-content: space-between;
		margin-top: 20rpx;
		margin-left: 20rpx;
		margin-right: 20rpx;
		padding-bottom: 20rpx;
		border-bottom: 5px solid #F7F7F7;
	}

	.coupon>view:nth-child(2) {
		color: #F86639;
	}

	.payment {
		display: flex;
		justify-content: space-between;
		margin-top: 20rpx;
		margin-left: 20rpx;
		margin-right: 20rpx;
		padding-bottom: 20rpx;
	}

	.payment>view:nth-child(2) {
		color: #5AD481;
		font-size: 35rpx;
	}

	.card2 {
		margin: 20rpx;
		border-radius: 20rpx;
		background-color: #FFF;
	}

	.orderingInformation {
		font-size: 32rpx;
		font-weight: bold;
		padding-top: 30rpx;
		margin-left: 20rpx;
		margin-right: 20rpx;
		padding: 20rpx;
		border-bottom: 5px solid #F7F7F7;
	}

	.orderNo {
		display: flex;
		justify-content: space-between;
		margin: 20rpx;
	}

	.orderNo>view:nth-child(2) {
		color: #DCDCDC;
	}

	.time {
		display: flex;
		justify-content: space-between;
		margin: 0 20rpx;
	}

	.time>view:nth-child(2) {
		color: #DCDCDC;
	}

	.time>view>text {
		margin-left: 10rpx;
	}

	.time1 {
		display: flex;
		justify-content: space-between;
		margin: 20rpx;
	}

	.time1>view:nth-child(2) {
		color: #DCDCDC;
	}

	.time1>view>text {
		margin-left: 10rpx;
	}

	.vehicle {
		display: flex;
		justify-content: space-between;
		margin: 20rpx;
	}

	.vehicle>view:nth-child(2) {
		color: #DCDCDC;
	}

	.notes {
		display: flex;
		justify-content: space-between;
		margin: 20rpx;
		padding-bottom: 20rpx;
	}

	.bottom {
		height: 50rpx;
	}
</style>